<extend name="Public/base"/>
<block name="page-header">
	<li><a><i class="fa fa-briefcase"></i>{$meta_title}</a>
	<li><a><i class="fa fa-wrench"></i>修改密码</a>
</block>
<block name="body">
<div class="row">
	<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
		<div class="tabs">
			<ul class="nav nav-tabs">
				<li>
					<a href="#user" data-toggle="tab"><i class="fa fa-home"></i> 修改用户名</a>
				</li>
				<li  class="active">
					<a href="#password" data-toggle="tab">修改密码</a>
				</li>
			</ul>
			<div class="tab-content">
				<div id="user" class="tab-pane">
					<form action="{:U('User/submitname')}" method="post" class="this">
						<div class="form-group">
							<label for="nf-password">密码：</label>
							<input type="password" id="nf-password" name="password" class="form-control" placeholder="密码">
							<span class="help-block">请输入密码</span>
						</div>
						<div class="form-group">
							<label for="nf-username">用户名：</label>
							<input type="text" id="nf-username" name="username" class="form-control" placeholder="用户名">
							<span class="help-block">请输入用户名</span>
						</div>
						<div class="form-group">
							<button type="submit" class="btn btn-success btn-lg ajax-post" target-form="this">确 定</button>
						</div>
				</form>
				</div>
				<div id="password" class="tab-pane active">
					<form action="{:U('User/submitpass')}" method="post" class="that">
						<div class="form-group">
							<label for="nf-old">原密码：</label>
							<input type="password" id="nf-old" name="old" class="form-control" placeholder="原密码">
							<span class="help-block">请输入原密码</span>
						</div>
						<div class="form-group">
							<label for="nf-password">新密码：</label>
							<input type="password" id="nf-password" name="password" class="form-control" placeholder="新密码">
							<span class="help-block">请输入新密码</span>
						</div>
						<div class="form-group">
							<label for="nf-repassword">确认密码：</label>
							<input type="password" id="nf-repassword" name="repassword" class="form-control" placeholder="确认密码">
							<span class="help-block">请输入确认密码</span>
						</div>
						<div class="form-group">
							<button type="submit" class="btn btn-success btn-lg ajax-post" class="that">确 定</button>
						</div>
				</form>
				</div>
			</div>
		</div>
	</div>
</div>
</block>
